import Vue from 'vue'
import VueRouter from 'vue-router'
import app from './App.vue'
import router from './router/index'
import './assets/style/main.css'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
import api from './api'
Vue.use(VueRouter)
Vue.use(Antd)
Vue.config.productionTip = false
Vue.prototype.$api = api
Vue.prototype.$message.config({
  top: `50px`,
  duration: 1,
  maxCount: 3,
})
const init = () => {
  new Vue({
    el: '#app',
    router,
    render: p => p(app)
  })
}

init()

// let token = cookie.get('token')
// store.commit('setToken', token)
